export default defineAppConfig({
  pages: [
    'pages/index/index',
    'pages/Home/index',
    'pages/Hospital/index',
    'pages/AI/index',
    'pages/Data/index',
    'pages/User/index',
    'pages/Protocol/index',
    'pages/Manual/index',
  ],
  window: {
    backgroundTextStyle: 'light',
    navigationBarTitleText: '疫苗先知',
    navigationBarTextStyle: 'black'
  },
  permission: {
    'scope.userLocation': {
      desc: '你的位置信息将用于小程序位置接口的效果展示'
    }
  },
  networkTimeout: {
    request: 600000,
    connectSocket: 600000,
    downloadFile: 600000,
    uploadFile: 600000,
  },
  tabBar: {
    custom: true,
    list: [
      {
        pagePath: "pages/Home/index",
        text: "首页"
      },
      {
        pagePath: "pages/Hospital/index",
        text: "医院"
      },
      {
        pagePath: "pages/AI/index",
        text: "AI先知"
      },
      {
        pagePath: "pages/Data/index",
        text: "疾控数据"
      },
      {
        pagePath: "pages/User/index",
        text: "我的"
      },
    ]
  },
  subPackages: [
    {
      root: 'package-home',
      pages: [
        'pages/HomeNews/index',
        'pages/HomePolicy/index',
        'pages/HomeVacuum/index',
        'pages/HomeVacuumDetail/index',
        'pages/HomeFunnyAnswer/index',
        'pages/HomeFunnyAnswerDetail/index',
        'pages/HomeVideo/index',
        'pages/HomeKnowledge/index',
        'pages/WebView/index',
        'pages/RichTextView/index',
      ],
    },
  ]
})
